checkout: add an extra checkout_overwrite mode
authorRuixin <peter.bao@mail.utoronto.ca>
Thu, 31 Aug 2017 15:44:35 +0000 (15:44 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 1 Sep 2017 15:42:50 +0000 (15:42 +0000)
commitf07432d4cefcea7fb8c602b9ab78e83236127d8f
tree26e226ac0fa173deb7fae4fcff29586a204653ec
parent12114ce3828936ed170adaa71a4c6e948764b127
checkout: add an extra checkout_overwrite mode

This is for issue projectatomic/rpm-ostree#365,
an extra option of overwrite mode is added to the checkout command
so that when there is "non-directory" file already exist
during checkout, the error will be handled.

Some tests are added for regression

Closes: #1116
Approved by: cgwalters
bash/ostree
man/ostree-checkout.xml
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-checkout.c
tests/basic-test.sh